@echo off
rem bat文件的文件名需要和代码内一致
echo 开始更改文件名......
set /a num = 0
setlocal enabledelayedexpansion
for %%m in (*) do (
    if not "%%m" == "rename.bat" (
            set /a num = num + 1
            ren %%m !num!%%~xm
        )
    )
)
echo 文件名修改完毕......
pause